$(() => {
    // 获取购物车数量
    $.getJSON("/api/cart/findCount", ret => {
        console.log(ret);
        if (ret['code'] == 200) {
            $(".shopcar .count").html(ret['data']);
        } else {
            // 未登录
            window.location.href = "/login.html";
        }
    });
});
